package com.peng.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.peng.commons.DataScope;
import com.peng.model.TUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peng.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author Love-ovo
* @description 针对表【t_user(用户表)】的数据库操作Mapper
* @createDate 2025-03-14 21:28:15
* @Entity com.peng.model.TUser
*/
@Mapper
public interface TUserMapper extends BaseMapper<TUser> {
    @DataScope(tableAlias = "tu",tableField = "id")
    IPage<TUser> selectUserPage(@Param("query") BaseQuery query, Page<TUser> page);

    List<TUser> selectByOwner();
}




